define(['lib/lazyLoad'], function (lazyLoad) {
    var userRouter = {
        routes: [{
            name: "portal.user",
            url: "/user",
            templateUrl: 'app/business/user/views/index.html',
            controller: 'userCtrl',
            dependencies: ['app/business/user/controller/userCtrl.js', 'app/business/user/service/userService.js']
        }, {
            name: "portal.user.list",
            url: "/list",
            templateUrl: 'app/business/user/views/list.html',
            controller: 'userListCtrl',
            dependencies: ['app/business/user/controller/userListCtrl.js', 'app/business/user/service/userService.js']
        }]
    }

    var userModule = angular.module('user', []);
    lazyLoad.makeLazy(userModule);
    userModule.configState(userRouter);
    return userModule;
});